home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Nave / TetesBruless.swf / scripts / DefineButton2_138 / BUTTONCONDACTION on(press).as
Text File  |  2006-06-13  |  2KB  |  73 lines

  1. on(press){
  2.    if(0 < eval("/:bullets"))
  3.    {
  4.       set("/:bullets",eval("/:bullets") - 1);
  5.       set("/:totalShots",eval("/:totalShots") + 1);
  6.    }
  7.    if(getProperty("/targeter", _droptarget) eq "/smile/victim")
  8.    {
  9.       if(eval("/:allowhitsmile") == 1)
  10.       {
  11.          set("/:nbNiceShots",eval("/:nbNiceShots") + 1);
  12.          set("/:score",eval("/:score") + eval("/:addPoints"));
  13.          tellTarget("/smile")
  14.          {
  15.             stop();
  16.          }
  17.          tellTarget("/smile/victim")
  18.          {
  19.             gotoAndStop("die");
  20.             play();
  21.          }
  22.          if(eval("/:smileRunning") == 1)
  23.          {
  24.             ┬º/:hitsOvni1┬º++;
  25.          }
  26.          else if(eval("/:smileRunning") == 2)
  27.          {
  28.             ┬º/:hitsOvni2┬º++;
  29.          }
  30.          else if(eval("/:smileRunning") == 3)
  31.          {
  32.             ┬º/:hitsOvni3┬º++;
  33.          }
  34.          else if(eval("/:smileRunning") == 4)
  35.          {
  36.             ┬º/:hitsOvni4┬º++;
  37.          }
  38.       }
  39.    }
  40.    if(getProperty("/targeter", _droptarget) eq "/addMun/addMun2/addMun3")
  41.    {
  42.       if(eval("/:allowHitMun") == 1)
  43.       {
  44.          set("/:bullets",Number(eval("/:bullets")) + 10);
  45.          tellTarget("/addMun")
  46.          {
  47.             stop();
  48.          }
  49.          tellTarget("/addMun/addMun2")
  50.          {
  51.             gotoAndStop("dieMun");
  52.             play();
  53.          }
  54.       }
  55.    }
  56.    if(getProperty("/targeter", _droptarget) eq "/addTime/addTime2/addTime3")
  57.    {
  58.       if(eval("/:allowHitTime") == 1)
  59.       {
  60.          set("/:timeLimit",Number(eval("/:timeLimit")) + 10);
  61.          tellTarget("/addtime")
  62.          {
  63.             stop();
  64.          }
  65.          tellTarget("/addTime/addTime2")
  66.          {
  67.             gotoAndStop("dieTime");
  68.             play();
  69.          }
  70.       }
  71.    }
  72. }
  73.